package item10;

public class Test {
	public Test(){
		System.out.println("Test gouzao");
	}
	protected void doSomething(){
		System.out.println("Test doSomething");
	}
	protected Test dolt(){
		return new Test();
	}
}
class Test2 extends Test{
	public Test2(){
		System.out.println("Test2 gouzao");
	}
	public void doSomethingnew(){
		System.out.println("Test2 doSomethingnew");
	}	
	public void doSomething(){
		System.out.println("Test2 doSomething");
	}
	protected Test2 dolt(){
		return new Test2();
	}
}